//
//  CheckElectricChargeInfoResponse.m
//  EasyToo
//
//  Created by YuanDee on 13-9-14.
//
//

#import "CheckElectricChargeInfoResponse.h"
#import "ElectricFeeInfo.h"

@implementation CheckElectricChargeInfoResponse
- (void)parse
{
    [super parse];
    
    if (self.bodyDict)
    {
        NSArray *electricFeeJsonArray = GetDictionaryArrayDefaultNil(self.bodyDict, @"QueryContent");
        self.electricFeeDetailInfoArray = [[[NSMutableArray alloc] init] autorelease];
        for (int i = 0; i < [electricFeeJsonArray count]; i++)
        {
 //           [self.electricFeeDetailInfoArray addObject:[electricFeeJsonArray objectAtIndex:i]];
            NSDictionary *electricFeeInfoJson = [electricFeeJsonArray objectAtIndex:i];
            NSLog(@"electricFeeInfoJson:%@\n", electricFeeInfoJson);
            ElectricFeeInfo *electricFeeInfo = [[ElectricFeeInfo alloc] initWithDictionary:electricFeeInfoJson];
            NSLog(@"electricFeeInfo:%@\n", electricFeeInfo);

            [self.electricFeeDetailInfoArray addObject:electricFeeInfo];
            [electricFeeInfo release];
        }
    }
}

@end
